#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

class Dog {
public:
	void setage(int year = 0);
	void showage();
	void setweight(int kg = 0);
	void showweight();
private:
	int age, weight;
};

void Dog::setage(int year) {
	age = year;
}

void Dog::setweight(int kg) {
	weight = kg;
}

inline void Dog::showage() {
	cout << "age=" << age << endl;
}

inline void Dog::showweight() {
	cout << "weight=" << weight << "kg" << endl;
}

int main1() {
	int age, weight;
	Dog Dear;
	cout << "Dog's age is " << endl;
	cin >> age;
	Dear.setage(age);
	cout << "Dog's weight is " << endl;
	cin >> weight;
	Dear.setweight(weight);
	Dear.showage();
	Dear.showweight();
	return 0;
};
